Public Class frmPriceChangeReport
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents dgProduct As System.Windows.Forms.DataGrid
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents tbRptDate As System.Windows.Forms.DateTimePicker
    Friend WithEvents tbEndDate As System.Windows.Forms.DateTimePicker
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents rbUTD As System.Windows.Forms.RadioButton
    Friend WithEvents rbRetail As System.Windows.Forms.RadioButton
    Friend WithEvents rbWholesale As System.Windows.Forms.RadioButton
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents rbLess As System.Windows.Forms.RadioButton
    Friend WithEvents rbMore As System.Windows.Forms.RadioButton
    Friend WithEvents rbNot As System.Windows.Forms.RadioButton
    Friend WithEvents crICPriceChangeRpt1 As crICPriceChangeRpt
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents cmbYear As DevComponents.DotNetBar.Controls.ComboBoxEx
    Friend WithEvents cmbDepartment As DevComponents.DotNetBar.Controls.ComboBoxEx
    Friend WithEvents cmbBrand As DevComponents.DotNetBar.Controls.ComboBoxEx
    Friend WithEvents cmbManuf As DevComponents.DotNetBar.Controls.ComboBoxEx
    Friend WithEvents cmbCategory As DevComponents.DotNetBar.Controls.ComboBoxEx
    Friend WithEvents cmbSubCat As DevComponents.DotNetBar.Controls.ComboBoxEx
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents cmdPrint As DevComponents.DotNetBar.ButtonX
    Friend WithEvents cmdRefresh As DevComponents.DotNetBar.ButtonX
    Friend WithEvents cmdExit As DevComponents.DotNetBar.ButtonX
    Friend WithEvents GroupPanel1 As DevComponents.DotNetBar.Controls.GroupPanel
    Friend WithEvents cmbGroup1 As System.Windows.Forms.ComboBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.dgProduct = New System.Windows.Forms.DataGrid()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.tbRptDate = New System.Windows.Forms.DateTimePicker()
        Me.tbEndDate = New System.Windows.Forms.DateTimePicker()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.rbUTD = New System.Windows.Forms.RadioButton()
        Me.rbRetail = New System.Windows.Forms.RadioButton()
        Me.rbWholesale = New System.Windows.Forms.RadioButton()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
        Me.GroupBox2 = New System.Windows.Forms.GroupBox()
        Me.rbNot = New System.Windows.Forms.RadioButton()
        Me.rbMore = New System.Windows.Forms.RadioButton()
        Me.rbLess = New System.Windows.Forms.RadioButton()
        Me.crICPriceChangeRpt1 = New crICPriceChangeRpt()
        Me.Label5 = New System.Windows.Forms.Label()
        Me.cmbYear = New DevComponents.DotNetBar.Controls.ComboBoxEx()
        Me.cmbGroup1 = New System.Windows.Forms.ComboBox()
        Me.cmbDepartment = New DevComponents.DotNetBar.Controls.ComboBoxEx()
        Me.cmbBrand = New DevComponents.DotNetBar.Controls.ComboBoxEx()
        Me.cmbManuf = New DevComponents.DotNetBar.Controls.ComboBoxEx()
        Me.cmbCategory = New DevComponents.DotNetBar.Controls.ComboBoxEx()
        Me.cmbSubCat = New DevComponents.DotNetBar.Controls.ComboBoxEx()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.Label6 = New System.Windows.Forms.Label()
        Me.Label7 = New System.Windows.Forms.Label()
        Me.Label8 = New System.Windows.Forms.Label()
        Me.Label9 = New System.Windows.Forms.Label()
        Me.cmdPrint = New DevComponents.DotNetBar.ButtonX()
        Me.cmdRefresh = New DevComponents.DotNetBar.ButtonX()
        Me.cmdExit = New DevComponents.DotNetBar.ButtonX()
        Me.GroupPanel1 = New DevComponents.DotNetBar.Controls.GroupPanel()
        CType(Me.dgProduct, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        Me.GroupPanel1.SuspendLayout()
        Me.SuspendLayout()
        '
        'dgProduct
        '
        Me.dgProduct.BackColor = System.Drawing.Color.AliceBlue
        Me.dgProduct.BackgroundColor = System.Drawing.Color.AliceBlue
        Me.dgProduct.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.dgProduct.CaptionVisible = False
        Me.dgProduct.DataMember = ""
        Me.dgProduct.HeaderBackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(128, Byte), Integer))
        Me.dgProduct.HeaderForeColor = System.Drawing.SystemColors.ControlText
        Me.dgProduct.Location = New System.Drawing.Point(15, 153)
        Me.dgProduct.Name = "dgProduct"
        Me.dgProduct.ReadOnly = True
        Me.dgProduct.Size = New System.Drawing.Size(909, 317)
        Me.dgProduct.TabIndex = 47
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.BackColor = System.Drawing.Color.Transparent
        Me.Label1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.Label1.Location = New System.Drawing.Point(13, 9)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(72, 18)
        Me.Label1.TabIndex = 55
        Me.Label1.Text = "From Date"
        '
        'tbRptDate
        '
        Me.tbRptDate.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
        Me.tbRptDate.Location = New System.Drawing.Point(16, 54)
        Me.tbRptDate.Name = "tbRptDate"
        Me.tbRptDate.Size = New System.Drawing.Size(101, 26)
        Me.tbRptDate.TabIndex = 154
        '
        'tbEndDate
        '
        Me.tbEndDate.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
        Me.tbEndDate.Location = New System.Drawing.Point(126, 54)
        Me.tbEndDate.Name = "tbEndDate"
        Me.tbEndDate.Size = New System.Drawing.Size(96, 26)
        Me.tbEndDate.TabIndex = 157
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.BackColor = System.Drawing.Color.Transparent
        Me.Label2.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.Label2.Location = New System.Drawing.Point(128, 9)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(54, 18)
        Me.Label2.TabIndex = 156
        Me.Label2.Text = "To Date"
        '
        'rbUTD
        '
        Me.rbUTD.AutoSize = True
        Me.rbUTD.BackColor = System.Drawing.Color.Transparent
        Me.rbUTD.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.rbUTD.Location = New System.Drawing.Point(271, 7)
        Me.rbUTD.Name = "rbUTD"
        Me.rbUTD.Size = New System.Drawing.Size(49, 22)
        Me.rbUTD.TabIndex = 189
        Me.rbUTD.Text = "YTD"
        Me.rbUTD.UseVisualStyleBackColor = False
        '
        'rbRetail
        '
        Me.rbRetail.AutoSize = True
        Me.rbRetail.BackColor = System.Drawing.Color.Transparent
        Me.rbRetail.Checked = True
        Me.rbRetail.Location = New System.Drawing.Point(9, 17)
        Me.rbRetail.Name = "rbRetail"
        Me.rbRetail.Size = New System.Drawing.Size(96, 22)
        Me.rbRetail.TabIndex = 191
        Me.rbRetail.TabStop = True
        Me.rbRetail.Text = "Retail Price"
        Me.rbRetail.UseVisualStyleBackColor = False
        '
        'rbWholesale
        '
        Me.rbWholesale.AutoSize = True
        Me.rbWholesale.BackColor = System.Drawing.Color.Transparent
        Me.rbWholesale.Location = New System.Drawing.Point(117, 18)
        Me.rbWholesale.Name = "rbWholesale"
        Me.rbWholesale.Size = New System.Drawing.Size(126, 22)
        Me.rbWholesale.TabIndex = 192
        Me.rbWholesale.Text = "Wholesale Price"
        Me.rbWholesale.UseVisualStyleBackColor = False
        '
        'GroupBox1
        '
        Me.GroupBox1.BackColor = System.Drawing.Color.Transparent
        Me.GroupBox1.Controls.Add(Me.rbRetail)
        Me.GroupBox1.Controls.Add(Me.rbWholesale)
        Me.GroupBox1.Location = New System.Drawing.Point(353, 14)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(266, 48)
        Me.GroupBox1.TabIndex = 193
        Me.GroupBox1.TabStop = False
        '
        'GroupBox2
        '
        Me.GroupBox2.BackColor = System.Drawing.Color.Transparent
        Me.GroupBox2.Controls.Add(Me.rbNot)
        Me.GroupBox2.Controls.Add(Me.rbMore)
        Me.GroupBox2.Controls.Add(Me.rbLess)
        Me.GroupBox2.Location = New System.Drawing.Point(624, -8)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(297, 72)
        Me.GroupBox2.TabIndex = 194
        Me.GroupBox2.TabStop = False
        '
        'rbNot
        '
        Me.rbNot.AutoSize = True
        Me.rbNot.BackColor = System.Drawing.Color.Transparent
        Me.rbNot.Checked = True
        Me.rbNot.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.rbNot.Location = New System.Drawing.Point(12, 43)
        Me.rbNot.Name = "rbNot"
        Me.rbNot.Size = New System.Drawing.Size(149, 22)
        Me.rbNot.TabIndex = 2
        Me.rbNot.TabStop = True
        Me.rbNot.Text = "Old RSP <> New RSP"
        Me.rbNot.UseVisualStyleBackColor = False
        '
        'rbMore
        '
        Me.rbMore.AutoSize = True
        Me.rbMore.BackColor = System.Drawing.Color.Transparent
        Me.rbMore.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.rbMore.Location = New System.Drawing.Point(155, 16)
        Me.rbMore.Name = "rbMore"
        Me.rbMore.Size = New System.Drawing.Size(142, 22)
        Me.rbMore.TabIndex = 1
        Me.rbMore.Text = "Old RSP > New RSP"
        Me.rbMore.UseVisualStyleBackColor = False
        '
        'rbLess
        '
        Me.rbLess.AutoSize = True
        Me.rbLess.BackColor = System.Drawing.Color.Transparent
        Me.rbLess.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.rbLess.Location = New System.Drawing.Point(12, 16)
        Me.rbLess.Name = "rbLess"
        Me.rbLess.Size = New System.Drawing.Size(142, 22)
        Me.rbLess.TabIndex = 0
        Me.rbLess.Text = "Old RSP < New RSP"
        Me.rbLess.UseVisualStyleBackColor = False
        '
        'Label5
        '
        Me.Label5.AutoSize = True
        Me.Label5.BackColor = System.Drawing.Color.Transparent
        Me.Label5.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.Label5.Location = New System.Drawing.Point(231, 10)
        Me.Label5.Name = "Label5"
        Me.Label5.Size = New System.Drawing.Size(34, 18)
        Me.Label5.TabIndex = 156
        Me.Label5.Text = "Year"
        '
        'cmbYear
        '
        Me.cmbYear.DisplayMember = "Text"
        Me.cmbYear.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.cmbYear.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbYear.ItemHeight = 19
        Me.cmbYear.Location = New System.Drawing.Point(233, 55)
        Me.cmbYear.Name = "cmbYear"
        Me.cmbYear.Size = New System.Drawing.Size(117, 25)
        Me.cmbYear.TabIndex = 200
        '
        'cmbGroup1
        '
        Me.cmbGroup1.BackColor = System.Drawing.Color.AliceBlue
        Me.cmbGroup1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbGroup1.Location = New System.Drawing.Point(16, 95)
        Me.cmbGroup1.Name = "cmbGroup1"
        Me.cmbGroup1.Size = New System.Drawing.Size(139, 21)
        Me.cmbGroup1.TabIndex = 195
        '
        'cmbDepartment
        '
        Me.cmbDepartment.DisplayMember = "Text"
        Me.cmbDepartment.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbDepartment.ItemHeight = 19
        Me.cmbDepartment.Location = New System.Drawing.Point(15, 119)
        Me.cmbDepartment.Name = "cmbDepartment"
        Me.cmbDepartment.Size = New System.Drawing.Size(177, 25)
        Me.cmbDepartment.TabIndex = 200
        '
        'cmbBrand
        '
        Me.cmbBrand.DisplayMember = "Text"
        Me.cmbBrand.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.cmbBrand.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbBrand.ItemHeight = 19
        Me.cmbBrand.Location = New System.Drawing.Point(564, 119)
        Me.cmbBrand.Name = "cmbBrand"
        Me.cmbBrand.Size = New System.Drawing.Size(177, 25)
        Me.cmbBrand.TabIndex = 200
        '
        'cmbManuf
        '
        Me.cmbManuf.DisplayMember = "Text"
        Me.cmbManuf.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.cmbManuf.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbManuf.ItemHeight = 19
        Me.cmbManuf.Location = New System.Drawing.Point(198, 119)
        Me.cmbManuf.Name = "cmbManuf"
        Me.cmbManuf.Size = New System.Drawing.Size(177, 25)
        Me.cmbManuf.TabIndex = 200
        '
        'cmbCategory
        '
        Me.cmbCategory.DisplayMember = "Text"
        Me.cmbCategory.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.cmbCategory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbCategory.ItemHeight = 19
        Me.cmbCategory.Location = New System.Drawing.Point(747, 119)
        Me.cmbCategory.Name = "cmbCategory"
        Me.cmbCategory.Size = New System.Drawing.Size(177, 25)
        Me.cmbCategory.TabIndex = 200
        '
        'cmbSubCat
        '
        Me.cmbSubCat.DisplayMember = "Text"
        Me.cmbSubCat.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed
        Me.cmbSubCat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cmbSubCat.ItemHeight = 19
        Me.cmbSubCat.Location = New System.Drawing.Point(381, 119)
        Me.cmbSubCat.Name = "cmbSubCat"
        Me.cmbSubCat.Size = New System.Drawing.Size(177, 25)
        Me.cmbSubCat.TabIndex = 200
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.BackColor = System.Drawing.Color.Transparent
        Me.Label3.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.Label3.Location = New System.Drawing.Point(11, 74)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(83, 18)
        Me.Label3.TabIndex = 156
        Me.Label3.Text = "Department"
        '
        'Label6
        '
        Me.Label6.AutoSize = True
        Me.Label6.BackColor = System.Drawing.Color.Transparent
        Me.Label6.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.Label6.Location = New System.Drawing.Point(193, 74)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(44, 18)
        Me.Label6.TabIndex = 156
        Me.Label6.Text = "Brand"
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.BackColor = System.Drawing.Color.Transparent
        Me.Label7.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.Label7.Location = New System.Drawing.Point(378, 74)
        Me.Label7.Name = "Label7"
        Me.Label7.Size = New System.Drawing.Size(92, 18)
        Me.Label7.TabIndex = 156
        Me.Label7.Text = "Manufacturer"
        '
        'Label8
        '
        Me.Label8.AutoSize = True
        Me.Label8.BackColor = System.Drawing.Color.Transparent
        Me.Label8.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.Label8.Location = New System.Drawing.Point(558, 74)
        Me.Label8.Name = "Label8"
        Me.Label8.Size = New System.Drawing.Size(63, 18)
        Me.Label8.TabIndex = 156
        Me.Label8.Text = "Category"
        '
        'Label9
        '
        Me.Label9.AutoSize = True
        Me.Label9.BackColor = System.Drawing.Color.Transparent
        Me.Label9.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.Label9.Location = New System.Drawing.Point(741, 74)
        Me.Label9.Name = "Label9"
        Me.Label9.Size = New System.Drawing.Size(89, 18)
        Me.Label9.TabIndex = 156
        Me.Label9.Text = "Sub Category"
        '
        'cmdPrint
        '
        Me.cmdPrint.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton
        Me.cmdPrint.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdPrint.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(64, Byte), Integer))
        Me.cmdPrint.Location = New System.Drawing.Point(666, 484)
        Me.cmdPrint.Name = "cmdPrint"
        Me.cmdPrint.Size = New System.Drawing.Size(82, 27)
        Me.cmdPrint.TabIndex = 261
        Me.cmdPrint.Text = "Print"
        '
        'cmdRefresh
        '
        Me.cmdRefresh.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton
        Me.cmdRefresh.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdRefresh.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(64, Byte), Integer))
        Me.cmdRefresh.Location = New System.Drawing.Point(754, 484)
        Me.cmdRefresh.Name = "cmdRefresh"
        Me.cmdRefresh.Size = New System.Drawing.Size(82, 27)
        Me.cmdRefresh.TabIndex = 262
        Me.cmdRefresh.Text = "Refresh"
        '
        'cmdExit
        '
        Me.cmdExit.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton
        Me.cmdExit.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.cmdExit.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(64, Byte), Integer))
        Me.cmdExit.Location = New System.Drawing.Point(842, 484)
        Me.cmdExit.Name = "cmdExit"
        Me.cmdExit.Size = New System.Drawing.Size(82, 27)
        Me.cmdExit.TabIndex = 260
        Me.cmdExit.Text = "Exit"
        '
        'GroupPanel1
        '
        Me.GroupPanel1.CanvasColor = System.Drawing.SystemColors.Control
        Me.GroupPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007
        Me.GroupPanel1.Controls.Add(Me.GroupBox2)
        Me.GroupPanel1.Controls.Add(Me.GroupBox1)
        Me.GroupPanel1.Controls.Add(Me.Label9)
        Me.GroupPanel1.Controls.Add(Me.Label3)
        Me.GroupPanel1.Controls.Add(Me.Label6)
        Me.GroupPanel1.Controls.Add(Me.Label7)
        Me.GroupPanel1.Controls.Add(Me.Label8)
        Me.GroupPanel1.Controls.Add(Me.rbUTD)
        Me.GroupPanel1.Controls.Add(Me.Label1)
        Me.GroupPanel1.Controls.Add(Me.Label2)
        Me.GroupPanel1.Controls.Add(Me.Label5)
        Me.GroupPanel1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.GroupPanel1.Location = New System.Drawing.Point(0, 0)
        Me.GroupPanel1.Name = "GroupPanel1"
        Me.GroupPanel1.Size = New System.Drawing.Size(940, 525)
        '
        '
        '
        Me.GroupPanel1.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2
        Me.GroupPanel1.Style.BackColorGradientAngle = 90
        Me.GroupPanel1.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground
        Me.GroupPanel1.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid
        Me.GroupPanel1.Style.BorderBottomWidth = 1
        Me.GroupPanel1.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder
        Me.GroupPanel1.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid
        Me.GroupPanel1.Style.BorderLeftWidth = 1
        Me.GroupPanel1.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid
        Me.GroupPanel1.Style.BorderRightWidth = 1
        Me.GroupPanel1.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid
        Me.GroupPanel1.Style.BorderTopWidth = 1
        Me.GroupPanel1.Style.CornerDiameter = 4
        Me.GroupPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded
        Me.GroupPanel1.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center
        Me.GroupPanel1.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText
        Me.GroupPanel1.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near
        Me.GroupPanel1.TabIndex = 263
        Me.GroupPanel1.Text = "Retail Price Change Report"
        '
        'frmPriceChangeReport
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(7, 19)
        Me.BackColor = System.Drawing.SystemColors.ActiveCaption
        Me.ClientSize = New System.Drawing.Size(940, 525)
        Me.ControlBox = False
        Me.Controls.Add(Me.cmdPrint)
        Me.Controls.Add(Me.cmdRefresh)
        Me.Controls.Add(Me.cmdExit)
        Me.Controls.Add(Me.cmbSubCat)
        Me.Controls.Add(Me.cmbCategory)
        Me.Controls.Add(Me.cmbManuf)
        Me.Controls.Add(Me.cmbBrand)
        Me.Controls.Add(Me.cmbDepartment)
        Me.Controls.Add(Me.cmbYear)
        Me.Controls.Add(Me.tbEndDate)
        Me.Controls.Add(Me.tbRptDate)
        Me.Controls.Add(Me.dgProduct)
        Me.Controls.Add(Me.GroupPanel1)
        Me.Font = New System.Drawing.Font("Calibri", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.ForeColor = System.Drawing.SystemColors.ActiveCaptionText
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.Location = New System.Drawing.Point(100, 30)
        Me.Name = "frmPriceChangeReport"
        Me.ShowInTaskbar = False
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
        CType(Me.dgProduct, System.ComponentModel.ISupportInitialize).EndInit()
        Me.GroupBox1.ResumeLayout(False)
        Me.GroupBox1.PerformLayout()
        Me.GroupBox2.ResumeLayout(False)
        Me.GroupBox2.PerformLayout()
        Me.GroupPanel1.ResumeLayout(False)
        Me.GroupPanel1.PerformLayout()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub ICsavedInvSearch_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        tbRptDate.Text = Now.ToShortDateString
        Dim cYr As Integer = Now.Year
        cmbYear.Items.Clear()
        cmbYear.Items.Add(cYr - 2)
        cmbYear.Items.Add(cYr - 1)
        cmbYear.Items.Add(cYr)
        cmbYear.Items.Add(cYr + 1)
        If Now.Month <= 4 Then
            cmbYear.SelectedItem = Now.Year
            cmbYear.Text = (cYr).ToString()
        Else
            cmbYear.SelectedItem = Now.Year + 1
            cmbYear.Text = (cYr + 1).ToString()
        End If
        LoadGroupCombos(CompanyID)
    End Sub
    Private Sub LoadGroupCombos(ByVal CompanyCode As Integer)
        Dim ICdata As New ICdataLogic
        Dim ds As DataSet

        ds = ICdata.GetProductGroups(CompanyCode, 1)
        cmbDepartment.DataSource = ds.Tables(0)
        cmbDepartment.ValueMember = "GroupID"
        cmbDepartment.DisplayMember = "GroupName"
        cmbDepartment.SelectedValue = 0
        '
        ds = ICdata.GetProductGroups(CompanyCode, 2)
        cmbBrand.DataSource = ds.Tables(0)
        cmbBrand.ValueMember = "GroupID"
        cmbBrand.DisplayMember = "GroupName"
        cmbBrand.SelectedValue = 0
        '
        ds = ICdata.GetProductGroups(CompanyCode, 3)
        cmbManuf.DataSource = ds.Tables(0)
        cmbManuf.ValueMember = "GroupID"
        cmbManuf.DisplayMember = "GroupName"
        cmbManuf.SelectedValue = 0
        '
        ds = ICdata.GetProductGroups(CompanyCode, 4)
        cmbCategory.DataSource = ds.Tables(0)
        cmbCategory.ValueMember = "GroupID"
        cmbCategory.DisplayMember = "GroupName"
        cmbCategory.SelectedValue = 0
        '
        ds = ICdata.GetProductGroups(CompanyCode, 5)
        cmbSubCat.DataSource = ds.Tables(0)
        cmbSubCat.ValueMember = "GroupID"
        cmbSubCat.DisplayMember = "GroupName"
        cmbSubCat.SelectedValue = 0
        '
        ICdata = Nothing
    End Sub
    Private Sub GetTransferReport()
        Dim ICdata As New ICdataLogic
        Dim ds As DataSet
        Dim ds2 As DataSet
        Dim RptType As Integer = 1
        Dim ShowFlag As Integer = 3
        If rbLess.Checked = True Then
            ShowFlag = 1
        Else
            If rbMore.Checked = True Then
                ShowFlag = 2
            Else
                ShowFlag = 3
            End If
        End If
        If rbRetail.Checked = True Then
            RptType = 1
        Else
            RptType = 2
        End If
        Dim WhereClause As String
        If cmbDepartment.SelectedValue <> 0 Then
            WhereClause += " and Group1Code=" & cmbDepartment.SelectedValue
        End If
        If cmbBrand.SelectedValue <> 0 Then
            WhereClause += " and Group2Code=" & cmbBrand.SelectedValue
        End If
        If cmbManuf.SelectedValue <> 0 Then
            WhereClause += " and Group3Code=" & cmbManuf.SelectedValue
        End If
        If cmbCategory.SelectedValue <> 0 Then
            WhereClause += " and Group4Code=" & cmbCategory.SelectedValue
        End If
        If cmbSubCat.SelectedValue <> 0 Then
            WhereClause += " and Group5Code=" & cmbSubCat.SelectedValue
        End If
        Try
            ds = ICdata.GetPriceChangeProductList(RptType, tbRptDate.Text, tbEndDate.Text, ShowFlag, WhereClause)
        Catch ex As Exception
            MsgBox("Invalid Date. Try Again.", MsgBoxStyle.Critical, "Inventory Manager")
            tbRptDate.Text = Now.ToShortDateString
            Exit Sub
        End Try
        ICdata = Nothing
        dgProduct.DataSource = ds.Tables(0)
        With dgProduct
            ' .BackgroundColor = GridBackgroundColor
            .TableStyles.Clear()
            .CaptionBackColor = System.Drawing.Color.SlateBlue
            .CaptionForeColor = System.Drawing.Color.LemonChiffon
            .AllowSorting = True
            .AlternatingBackColor = System.Drawing.Color.AliceBlue
            .ParentRowsBackColor = System.Drawing.Color.Lavender
            .ParentRowsForeColor = System.Drawing.Color.SlateBlue
            .HeaderBackColor = System.Drawing.Color.LemonChiffon
            .AllowNavigation = False
            .ParentRowsVisible = False
            .RowHeadersVisible = False
        End With

        Dim cm As CurrencyManager = BindingContext(dgProduct.DataSource, dgProduct.DataMember)
        Dim dv As DataView = cm.List
        dv.AllowNew = False
        dgformat(ds.Tables(0).Rows.Count)
        If ds.Tables(0).Rows.Count > 0 Then
            dgProduct.Select(dgProduct.CurrentRowIndex())
        End If

    End Sub
    Private Sub dgformat(ByVal RowCount As Integer)
        Dim grdTableStyle As New DataGridTableStyle
        With grdTableStyle
            .AlternatingBackColor = Color.AliceBlue
            .HeaderFont = New Font("Tahoma", 8.0!, FontStyle.Bold)
            .MappingName = "INVOICE"
            .PreferredColumnWidth = 160
            .HeaderBackColor = Color.LightSlateGray
            .HeaderForeColor = Color.LightCyan
            .PreferredRowHeight = 15
            .RowHeadersVisible = False
            .RowHeaderWidth = 0
        End With
        Dim cs1 As DataGridColumnStyle
        cs1 = New DataGridTextBoxColumn
        cs1.Width = 90
        cs1.MappingName = "PRNUMBER"
        cs1.HeaderText = "PR.CH.NO."
        cs1.NullText = ""
        cs1.ReadOnly = True
        grdTableStyle.GridColumnStyles.Add(cs1)
        '
        cs1 = New DataGridTextBoxColumn
        cs1.Width = 100
        cs1.MappingName = "PRODUCTCODE"
        cs1.HeaderText = "PRODUCT"
        cs1.NullText = ""
        cs1.ReadOnly = True
        grdTableStyle.GridColumnStyles.Add(cs1)
        '
        cs1 = New DataGridTextBoxColumn
        cs1.Width = 225
        cs1.MappingName = "SHORTDESCRIPTIONE"
        cs1.HeaderText = "DESCRIPTION"
        cs1.NullText = ""
        cs1.ReadOnly = True
        grdTableStyle.GridColumnStyles.Add(cs1)
        '
        cs1 = New DataGridTextBoxColumn
        cs1.Width = 90
        cs1.MappingName = "ORGPRICE"
        cs1.HeaderText = "OLD PRICE"
        cs1.NullText = ""
        cs1.ReadOnly = True
        cs1.Alignment = HorizontalAlignment.Right
        grdTableStyle.GridColumnStyles.Add(cs1)
        '
        cs1 = New DataGridTextBoxColumn
        cs1.Width = 90
        cs1.MappingName = "NEWPRICE"
        cs1.HeaderText = "NEW PRICE"
        cs1.NullText = ""
        cs1.ReadOnly = True
        cs1.Alignment = HorizontalAlignment.Right
        grdTableStyle.GridColumnStyles.Add(cs1)
        '
        cs1 = New DataGridTextBoxColumn
        cs1.Width = 70
        cs1.MappingName = "GENDATE"
        cs1.HeaderText = "GEN.DATE"
        cs1.NullText = ""
        cs1.ReadOnly = True
        grdTableStyle.GridColumnStyles.Add(cs1)
        '
        cs1 = New DataGridTextBoxColumn
        cs1.Width = 70
        cs1.MappingName = "POSTDATE"
        cs1.HeaderText = "POST DATE"
        cs1.NullText = ""
        cs1.ReadOnly = True
        grdTableStyle.GridColumnStyles.Add(cs1)
        '
        dgProduct.TableStyles.Add(grdTableStyle)
    End Sub

    Private Sub cmdExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdExit.Click
        Me.Hide()
    End Sub

    Private Sub dgProduct_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dgProduct.MouseUp
        Dim pt As New Point(e.X, e.Y)
        Dim hti As DataGrid.HitTestInfo = dgProduct.HitTest(pt)
        If hti.Type = DataGrid.HitTestType.Cell Then
            dgProduct.CurrentCell = New DataGridCell(hti.Row, hti.Column)
            dgProduct.Select(hti.Row)
        End If
    End Sub
    Private Sub cmdRefresh_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRefresh.Click
        GetTransferReport()
    End Sub
    Private Sub cmdPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPrint.Click

        Me.Cursor = Cursors.WaitCursor
        GetTransferReport()

        Dim ds As DataSet = New DataSet("SerpsRpt")
        Dim table As DataTable = New DataTable("SerpsRpt")
        table.Columns.Add("Str1")
        table.Columns.Add("Str2")
        table.Columns.Add("Str3")
        table.Columns.Add("Str4")
        table.Columns.Add("Str5")
        table.Columns.Add("Dec1")
        table.Columns.Add("Dec2")
        Dim mrow, drow As Integer
        Dim cm As CurrencyManager = BindingContext(dgProduct.DataSource, dgProduct.DataMember)
        Dim dv As DataView = cm.List
        dv.RowStateFilter = DataViewRowState.CurrentRows
        mrow = dv.Count
        'mrow = mrow - drow
        Dim ProdCode As String
        Dim ProdDesc As String
        Dim ProdQty As String

        Dim n As Integer
        For n = 0 To mrow - 1
            Dim nrow As DataRow = table.NewRow()
            nrow("Str1") = dgProduct.Item(n, 0)
            nrow("Str2") = dgProduct.Item(n, 1)
            nrow("Str3") = dgProduct.Item(n, 2)
            nrow("Str4") = dgProduct.Item(n, 5)
            nrow("Str5") = dgProduct.Item(n, 6)
            nrow("Dec1") = dgProduct.Item(n, 3)
            nrow("Dec2") = dgProduct.Item(n, 4)
            table.Rows.Add(nrow)
        Next
        ds.Tables.Add(table)

        crICPriceChangeRpt1.Load()
        crICPriceChangeRpt1.SetDataSource(ds)
        crICPriceChangeRpt1.SetParameterValue("CompanyName", "SAFARI HOUSE GENERAL TRDG.CO.")
        crICPriceChangeRpt1.SetParameterValue("ReportTitle", "Price Change Analysis Report")
        crICPriceChangeRpt1.SetParameterValue("FromDate", tbRptDate.Text)
        crICPriceChangeRpt1.SetParameterValue("ToDate", tbEndDate.Text)
        If PrntPrv Is Nothing Then
            PrntPrv = New PrintPreviewForm
            PrntPrv.CrRptView.ReportSource = crICPriceChangeRpt1
            PrntPrv.ShowDialog()
        End If
        crICPriceChangeRpt1.Close()
        'crICinterComTrfrReport1.PrintOptions.PrinterName = InvoicePrinter
        'Try
        '    iclistofpurchaseorder1.PrintToPrinter(1, True, 0, 0)
        'Catch ex As Exception
        '    MsgBox(ex.ToString)
        'End Try
        Me.Cursor = Cursors.Default
    End Sub
    Private Sub rbUTD_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbUTD.Click
        tbRptDate.Text = "01/05/" & (cmbYear.Text - 1).ToString()
        tbEndDate.Text = "30/04/" & cmbYear.Text
        If Today() < DateTime.Parse(tbEndDate.Text) Then
            tbEndDate.Text = Today.ToShortDateString()
        End If
        GetTransferReport()
    End Sub

End Class
